package edu.whut.mall.admin.domain;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @program: d9lab-mall
 * @description: 资源表单
 * @author: Wayne
 * @create: 2020-04-14 17:03
 **/
@Data
public class ResourceParams {

    private Long id;

    @NotBlank(message="资源名称不能为空")
    private String name;

    @NotNull(message="资源类型不能为空")
    private Integer type;

    private String url;

    private String permission;

    @NotNull(message="资源上级不能为空")
    private Long parentId;

    @NotNull(message="资源排序不能为空")
    private Integer sort;

    @NotNull(message="必须标注是否为外部资源")
    private Integer external;

    private String icon;
}
